﻿
using System.Collections.Generic;
using GuRenFang.Service.Entity;

namespace GuRenFang.Service.IBiz
{
   public interface IMessagesBiz
    {
        IEnumerable<Messages> GetAll();
        Messages GetById(int id);
        void Create(Messages item);
        void Delete(int id);
        void Save();
        void Update(Messages item);
        IEnumerable<Messages> GetItemsByPages(out int totalRecord, int? pageIndex = 1, int? pageSize = 10, string orderFiled = "ID");
    }

}
